<?php
//选择学期
$select_year_options=array(
    'css zen garden' => 'css zen garden'
);
//选择课程
$select_course_options=array(
    'css' => 'css',
    'java' => 'java'
);
//选择班级
$select_class_options=array(
    '0722212' => '0722212',
    '0722211' => '0722211'
);
//提交按钮
$submit=array(
    'type'=>'submit',
    'class'=>'submit',
    'value'=>'搜索'
    )
    ?>
<head>
    <?php $this->load->view('load_view'); ?>
</head>
<?php
$k=array(	array(
    'Mr.A',
    array('P','M','D')
    ),
    array(
    'Mr.B',
    array('P','R','D')
    ),
    array(
    'Mr.c',
    array('P','P','P')
    )
);
?>
<div class="col-wrap handin-wrap">
    <div class="col">
        <div class="wrap-title">
            <p class="page-title">查看课程</p>
        </div>
        <p class="desc bg">
            页面提示：查看某门课程哦全部作业信息
        </p>
        <div class="itemtitle">
            <h3>操作类型</h3>
            <ul class="selectNav">
                <li><a href="<?php echo site_url('c_teacher/unexpired');?>" id="editassign"><span>未过期课业</span></a></li>
                <li><a href="<?php echo site_url('c_teacher/expired');?>" id="addassign"><span>过期课业</span></a></li>
                <li><a href="<?php echo site_url('c_teacher/lookall');?>"><span>查看课程</span></a></li>
            </ul>
            <div class="clear"></div>
        </div>
        <!--start activate-wrap-->
        <div class="list activate-wrap">
            <div class="search">
                <div class="search">
                    <?php echo form_open(); ?>
                    <?php echo form_label('选择学期:'); ?>
                    <?php echo form_dropdown('selectyear',$select_year_options); ?>
                    <?php echo form_label('选择课程:'); ?>
                    <?php echo form_dropdown('selectcourse',$select_course_options); ?>
                    <?php echo form_label('选择班级:'); ?>
                    <?php echo form_dropdown('selectclass',$select_class_options); ?>
                    <?php echo form_input($submit); ?>
                    <?php echo form_close();?>
                </div>
            </div>
            <form>
                <table cellpadding="1" class="sortTable" id="sortTable">
                    <thead>
                        <tr>
                            <th><p>姓名</p></th>
                            <th><p>第1次</p></th>
                            <th><p>第3次</p></th>
                            <th><p>第2次</p></th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php
                        for($i=0;$i<count($k);$i++) {
                            ?>
                        <tr class="toggle">
                            <td><?php echo $k[$i][0]; ?></td>
                                <?php
                                for($v=0;$v<count($k[$i][1]);$v++) {
                                    ?>
                            <td class="score"><input class="checkbox" type="checkbox" /><span><?php echo $k[$i][1][$v]; ?><span></td>
                                            <?php
                                            }
                                            ?>
                                        </tr>
                                        <?php
                                        }
                                        ?>
                                        </tbody>
                                        </table>
                                        <p class="control">
                                            <a id="selectAll" href="javascript:">全选</a>
                                            <a id="selectNone" href="javascript:">不选</a>
                                            <input type="submit" class="submit" value="下载" />
                                        </p>
                                        </form>
                                        </div>
                                        <!--end activate-wrap-->
                                        </div>
                                        <!--end col-->
                                        </div>
                                        <!--end col-wrap-->
                                        <script>
                                            $('ul.selectNav li').eq(2).addClass('current');
                                            $(window.parent.document).find("ul.nav li a").removeClass("then");
                                            $(window.parent.document).find("a#lookup").attr("class","then");
                                        </script>